﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000217 RID: 535
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueCurrentDifficultyInfo : IMessage<ChessRogueCurrentDifficultyInfo>, IMessage, IEquatable<ChessRogueCurrentDifficultyInfo>, IDeepCloneable<ChessRogueCurrentDifficultyInfo>, IBufferMessage
	{
		// Token: 0x170006FD RID: 1789
		// (get) Token: 0x060017F9 RID: 6137 RVA: 0x00044339 File Offset: 0x00042539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueCurrentDifficultyInfo> Parser
		{
			get
			{
				return ChessRogueCurrentDifficultyInfo._parser;
			}
		}

		// Token: 0x170006FE RID: 1790
		// (get) Token: 0x060017FA RID: 6138 RVA: 0x00044340 File Offset: 0x00042540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueCurrentDifficultyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006FF RID: 1791
		// (get) Token: 0x060017FB RID: 6139 RVA: 0x00044352 File Offset: 0x00042552
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueCurrentDifficultyInfo.Descriptor;
			}
		}

		// Token: 0x060017FC RID: 6140 RVA: 0x00044359 File Offset: 0x00042559
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentDifficultyInfo()
		{
		}

		// Token: 0x060017FD RID: 6141 RVA: 0x0004436C File Offset: 0x0004256C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentDifficultyInfo(ChessRogueCurrentDifficultyInfo other) : this()
		{
			this.difficultyIdList_ = other.difficultyIdList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060017FE RID: 6142 RVA: 0x00044396 File Offset: 0x00042596
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentDifficultyInfo Clone()
		{
			return new ChessRogueCurrentDifficultyInfo(this);
		}

		// Token: 0x17000700 RID: 1792
		// (get) Token: 0x060017FF RID: 6143 RVA: 0x0004439E File Offset: 0x0004259E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DifficultyIdList
		{
			get
			{
				return this.difficultyIdList_;
			}
		}

		// Token: 0x06001800 RID: 6144 RVA: 0x000443A6 File Offset: 0x000425A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueCurrentDifficultyInfo);
		}

		// Token: 0x06001801 RID: 6145 RVA: 0x000443B4 File Offset: 0x000425B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueCurrentDifficultyInfo other)
		{
			return other != null && (other == this || (this.difficultyIdList_.Equals(other.difficultyIdList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001802 RID: 6146 RVA: 0x000443E8 File Offset: 0x000425E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.difficultyIdList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001803 RID: 6147 RVA: 0x0004441C File Offset: 0x0004261C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001804 RID: 6148 RVA: 0x00044424 File Offset: 0x00042624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001805 RID: 6149 RVA: 0x0004442D File Offset: 0x0004262D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.difficultyIdList_.WriteTo(ref output, ChessRogueCurrentDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001806 RID: 6150 RVA: 0x00044454 File Offset: 0x00042654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.difficultyIdList_.CalculateSize(ChessRogueCurrentDifficultyInfo._repeated_difficultyIdList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001807 RID: 6151 RVA: 0x0004448D File Offset: 0x0004268D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueCurrentDifficultyInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.difficultyIdList_.Add(other.difficultyIdList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001808 RID: 6152 RVA: 0x000444BB File Offset: 0x000426BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001809 RID: 6153 RVA: 0x000444C4 File Offset: 0x000426C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U && num != 10U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.difficultyIdList_.AddEntriesFrom(ref input, ChessRogueCurrentDifficultyInfo._repeated_difficultyIdList_codec);
				}
			}
		}

		// Token: 0x040009EF RID: 2543
		private static readonly MessageParser<ChessRogueCurrentDifficultyInfo> _parser = new MessageParser<ChessRogueCurrentDifficultyInfo>(() => new ChessRogueCurrentDifficultyInfo());

		// Token: 0x040009F0 RID: 2544
		private UnknownFieldSet _unknownFields;

		// Token: 0x040009F1 RID: 2545
		public const int DifficultyIdListFieldNumber = 1;

		// Token: 0x040009F2 RID: 2546
		private static readonly FieldCodec<uint> _repeated_difficultyIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x040009F3 RID: 2547
		private readonly RepeatedField<uint> difficultyIdList_ = new RepeatedField<uint>();
	}
}
